Optimal. Leaf size=935 \[ -\frac {8 b e f^2 p}{5 d h^3 \sqrt {h x}}+\frac {2 \sqrt {2} b e^{5/4} f^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{5 d^{5/4} h^{7/2}}-\frac {4 \sqrt {2} b e^{3/4} f g p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 d^{3/4} h^{7/2}}-\frac {2 \sqrt {2} b \sqrt [4]{e} g^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {2 \sqrt {2} b e^{5/4} f^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{5 d^{5/4} h^{7/2}}+\frac {4 \sqrt {2} b e^{3/4} f g p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 d^{3/4} h^{7/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} g^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{5 h (h x)^{5/2}}-\frac {4 f g \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^2 (h x)^{3/2}}-\frac {2 g^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h^3 \sqrt {h x}}-\frac {\sqrt {2} b e^{5/4} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{5 d^{5/4} h^{7/2}}-\frac {2 \sqrt {2} b e^{3/4} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}+\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}+\frac {\sqrt {2} b e^{5/4} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{5 d^{5/4} h^{7/2}}+\frac {2 \sqrt {2} b e^{3/4} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}-\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.78, antiderivative size = 935, normalized size of antiderivative = 1.00, number of steps
used = 34, number of rules used = 11, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.355, Rules used = {2517, 2526,
2505, 331, 303, 1176, 631, 210, 1179, 642, 217} \begin {gather*} \frac {2 \sqrt {2} b e^{5/4} p \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right ) f^2}{5 d^{5/4} h^{7/2}}-\frac {2 \sqrt {2} b e^{5/4} p \text {ArcTan}\left (\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}+1\right ) f^2}{5 d^{5/4} h^{7/2}}-\frac {2 \left (a+b \log \left (c \left (e x^2+d\right )^p\right )\right ) f^2}{5 h (h x)^{5/2}}-\frac {\sqrt {2} b e^{5/4} p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right ) f^2}{5 d^{5/4} h^{7/2}}+\frac {\sqrt {2} b e^{5/4} p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right ) f^2}{5 d^{5/4} h^{7/2}}-\frac {8 b e p f^2}{5 d h^3 \sqrt {h x}}-\frac {4 \sqrt {2} b e^{3/4} g p \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right ) f}{3 d^{3/4} h^{7/2}}+\frac {4 \sqrt {2} b e^{3/4} g p \text {ArcTan}\left (\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}+1\right ) f}{3 d^{3/4} h^{7/2}}-\frac {4 g \left (a+b \log \left (c \left (e x^2+d\right )^p\right )\right ) f}{3 h^2 (h x)^{3/2}}-\frac {2 \sqrt {2} b e^{3/4} g p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right ) f}{3 d^{3/4} h^{7/2}}+\frac {2 \sqrt {2} b e^{3/4} g p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right ) f}{3 d^{3/4} h^{7/2}}-\frac {2 \sqrt {2} b \sqrt [4]{e} g^2 p \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} g^2 p \text {ArcTan}\left (\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}+1\right )}{\sqrt [4]{d} h^{7/2}}-\frac {2 g^2 \left (a+b \log \left (c \left (e x^2+d\right )^p\right )\right )}{h^3 \sqrt {h x}}+\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 217
Rule 303
Rule 331
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 2505
Rule 2517
Rule 2526
Rubi steps
\begin {align*} \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{7/2}} \, dx &=\frac {2 \text {Subst}\left (\int \frac {\left (f+\frac {g x^2}{h}\right )^2 \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right )}{x^6} \, dx,x,\sqrt {h x}\right )}{h}\\ &=\frac {2 \text {Subst}\left (\int \left (\frac {f^2 \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right )}{x^6}+\frac {2 f g \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right )}{h x^4}+\frac {g^2 \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right )}{h^2 x^2}\right ) \, dx,x,\sqrt {h x}\right )}{h}\\ &=\frac {\left (2 g^2\right ) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )}{x^2} \, dx,x,\sqrt {h x}\right )}{h^3}+\frac {(4 f g) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )}{x^4} \, dx,x,\sqrt {h x}\right )}{h^2}+\frac {\left (2 f^2\right ) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )}{x^6} \, dx,x,\sqrt {h x}\right )}{h}\\ &=-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{5 h (h x)^{5/2}}-\frac {4 f g \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^2 (h x)^{3/2}}-\frac {2 g^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h^3 \sqrt {h x}}+\frac {\left (8 b e g^2 p\right ) \text {Subst}\left (\int \frac {x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^5}+\frac {(16 b e f g p) \text {Subst}\left (\int \frac {1}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{3 h^4}+\frac {\left (8 b e f^2 p\right ) \text {Subst}\left (\int \frac {1}{x^2 \left (d+\frac {e x^4}{h^2}\right )} \, dx,x,\sqrt {h x}\right )}{5 h^3}\\ &=-\frac {8 b e f^2 p}{5 d h^3 \sqrt {h x}}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{5 h (h x)^{5/2}}-\frac {4 f g \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^2 (h x)^{3/2}}-\frac {2 g^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h^3 \sqrt {h x}}-\frac {\left (8 b e^2 f^2 p\right ) \text {Subst}\left (\int \frac {x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{5 d h^5}+\frac {(8 b e f g p) \text {Subst}\left (\int \frac {\sqrt {d} h-\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{3 \sqrt {d} h^5}+\frac {(8 b e f g p) \text {Subst}\left (\int \frac {\sqrt {d} h+\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{3 \sqrt {d} h^5}-\frac {\left (4 b \sqrt {e} g^2 p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h-\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^5}+\frac {\left (4 b \sqrt {e} g^2 p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h+\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^5}\\ &=-\frac {8 b e f^2 p}{5 d h^3 \sqrt {h x}}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{5 h (h x)^{5/2}}-\frac {4 f g \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^2 (h x)^{3/2}}-\frac {2 g^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h^3 \sqrt {h x}}+\frac {\left (4 b e^{3/2} f^2 p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h-\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{5 d h^5}-\frac {\left (4 b e^{3/2} f^2 p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h+\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{5 d h^5}-\frac {\left (2 \sqrt {2} b e^{3/4} f g p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}+2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}-\frac {\left (2 \sqrt {2} b e^{3/4} f g p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}-2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}+\frac {\left (\sqrt {2} b \sqrt [4]{e} g^2 p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}+2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}+\frac {\left (\sqrt {2} b \sqrt [4]{e} g^2 p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}-2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}+\frac {\left (4 b \sqrt {e} f g p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{3 \sqrt {d} h^3}+\frac {\left (4 b \sqrt {e} f g p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{3 \sqrt {d} h^3}+\frac {\left (2 b g^2 p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{h^3}+\frac {\left (2 b g^2 p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{h^3}\\ &=-\frac {8 b e f^2 p}{5 d h^3 \sqrt {h x}}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{5 h (h x)^{5/2}}-\frac {4 f g \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^2 (h x)^{3/2}}-\frac {2 g^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h^3 \sqrt {h x}}-\frac {2 \sqrt {2} b e^{3/4} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}+\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}+\frac {2 \sqrt {2} b e^{3/4} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}-\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {\left (\sqrt {2} b e^{5/4} f^2 p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}+2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{5 d^{5/4} h^{7/2}}-\frac {\left (\sqrt {2} b e^{5/4} f^2 p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}-2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{5 d^{5/4} h^{7/2}}+\frac {\left (4 \sqrt {2} b e^{3/4} f g p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 d^{3/4} h^{7/2}}-\frac {\left (4 \sqrt {2} b e^{3/4} f g p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 d^{3/4} h^{7/2}}+\frac {\left (2 \sqrt {2} b \sqrt [4]{e} g^2 p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {\left (2 \sqrt {2} b \sqrt [4]{e} g^2 p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {\left (2 b e f^2 p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{5 d h^3}-\frac {\left (2 b e f^2 p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{5 d h^3}\\ &=-\frac {8 b e f^2 p}{5 d h^3 \sqrt {h x}}-\frac {4 \sqrt {2} b e^{3/4} f g p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 d^{3/4} h^{7/2}}-\frac {2 \sqrt {2} b \sqrt [4]{e} g^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}+\frac {4 \sqrt {2} b e^{3/4} f g p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 d^{3/4} h^{7/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} g^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{5 h (h x)^{5/2}}-\frac {4 f g \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^2 (h x)^{3/2}}-\frac {2 g^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h^3 \sqrt {h x}}-\frac {\sqrt {2} b e^{5/4} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{5 d^{5/4} h^{7/2}}-\frac {2 \sqrt {2} b e^{3/4} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}+\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}+\frac {\sqrt {2} b e^{5/4} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{5 d^{5/4} h^{7/2}}+\frac {2 \sqrt {2} b e^{3/4} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}-\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {\left (2 \sqrt {2} b e^{5/4} f^2 p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{5 d^{5/4} h^{7/2}}+\frac {\left (2 \sqrt {2} b e^{5/4} f^2 p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{5 d^{5/4} h^{7/2}}\\ &=-\frac {8 b e f^2 p}{5 d h^3 \sqrt {h x}}+\frac {2 \sqrt {2} b e^{5/4} f^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{5 d^{5/4} h^{7/2}}-\frac {4 \sqrt {2} b e^{3/4} f g p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 d^{3/4} h^{7/2}}-\frac {2 \sqrt {2} b \sqrt [4]{e} g^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {2 \sqrt {2} b e^{5/4} f^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{5 d^{5/4} h^{7/2}}+\frac {4 \sqrt {2} b e^{3/4} f g p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 d^{3/4} h^{7/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} g^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{7/2}}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{5 h (h x)^{5/2}}-\frac {4 f g \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^2 (h x)^{3/2}}-\frac {2 g^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h^3 \sqrt {h x}}-\frac {\sqrt {2} b e^{5/4} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{5 d^{5/4} h^{7/2}}-\frac {2 \sqrt {2} b e^{3/4} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}+\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}+\frac {\sqrt {2} b e^{5/4} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{5 d^{5/4} h^{7/2}}+\frac {2 \sqrt {2} b e^{3/4} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 d^{3/4} h^{7/2}}-\frac {\sqrt {2} b \sqrt [4]{e} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.63, size = 340, normalized size = 0.36 \begin {gather*} \frac {2 x^{7/2} \left (\frac {2 b \sqrt [4]{e} g^2 p \left (\tan ^{-1}\left (\frac {\sqrt [4]{e} \sqrt {x}}{\sqrt [4]{-d}}\right )+\tanh ^{-1}\left (\frac {d \sqrt [4]{e} \sqrt {x}}{(-d)^{5/4}}\right )\right )}{\sqrt [4]{-d}}-\frac {4 b e f^2 p \, _2F_1\left (-\frac {1}{4},1;\frac {3}{4};-\frac {e x^2}{d}\right )}{5 d \sqrt {x}}-\frac {\sqrt {2} b e^{3/4} f g p \left (2 \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {x}}{\sqrt [4]{d}}\right )-2 \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {x}}{\sqrt [4]{d}}\right )+\log \left (\sqrt {d}-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {x}+\sqrt {e} x\right )-\log \left (\sqrt {d}+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {x}+\sqrt {e} x\right )\right )}{3 d^{3/4}}-\frac {f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{5 x^{5/2}}-\frac {2 f g \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 x^{3/2}}-\frac {g^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{\sqrt {x}}\right )}{(h x)^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.24, size = 0, normalized size = 0.00 \[\int \frac {\left (g x +f \right )^{2} \left (a +b \ln \left (c \left (e \,x^{2}+d \right )^{p}\right )\right )}{\left (h x \right )^{\frac {7}{2}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.53, size = 767, normalized size = 0.82 \begin {gather*} -\frac {2 \, b g^{2} x^{3} \log \left ({\left (x^{2} e + d\right )}^{p} c\right )}{\left (h x\right )^{\frac {7}{2}}} - \frac {{\left (\frac {\sqrt {2} e^{\left (-\frac {3}{4}\right )} \log \left (h x e^{\frac {1}{2}} + \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} \sqrt {h x} e^{\frac {1}{4}} + \sqrt {d} h\right )}{\left (d h^{2}\right )^{\frac {1}{4}}} - \frac {\sqrt {2} e^{\left (-\frac {3}{4}\right )} \log \left (h x e^{\frac {1}{2}} - \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} \sqrt {h x} e^{\frac {1}{4}} + \sqrt {d} h\right )}{\left (d h^{2}\right )^{\frac {1}{4}}} - \frac {2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} e^{\frac {1}{4}} + 2 \, \sqrt {h x} e^{\frac {1}{2}}\right )} e^{\left (-\frac {1}{4}\right )}}{2 \, \sqrt {\sqrt {d} h}}\right ) e^{\left (-\frac {3}{4}\right )}}{\sqrt {\sqrt {d} h}} - \frac {2 \, \sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} e^{\frac {1}{4}} - 2 \, \sqrt {h x} e^{\frac {1}{2}}\right )} e^{\left (-\frac {1}{4}\right )}}{2 \, \sqrt {\sqrt {d} h}}\right ) e^{\left (-\frac {3}{4}\right )}}{\sqrt {\sqrt {d} h}}\right )} b g^{2} p e}{h^{3}} + \frac {b f^{2} p {\left (\frac {{\left (\frac {\sqrt {2} e^{\left (-\frac {3}{4}\right )} \log \left (h x e^{\frac {1}{2}} + \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} \sqrt {h x} e^{\frac {1}{4}} + \sqrt {d} h\right )}{\left (d h^{2}\right )^{\frac {1}{4}}} - \frac {\sqrt {2} e^{\left (-\frac {3}{4}\right )} \log \left (h x e^{\frac {1}{2}} - \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} \sqrt {h x} e^{\frac {1}{4}} + \sqrt {d} h\right )}{\left (d h^{2}\right )^{\frac {1}{4}}} - \frac {2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} e^{\frac {1}{4}} + 2 \, \sqrt {h x} e^{\frac {1}{2}}\right )} e^{\left (-\frac {1}{4}\right )}}{2 \, \sqrt {\sqrt {d} h}}\right ) e^{\left (-\frac {3}{4}\right )}}{\sqrt {\sqrt {d} h}} - \frac {2 \, \sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} e^{\frac {1}{4}} - 2 \, \sqrt {h x} e^{\frac {1}{2}}\right )} e^{\left (-\frac {1}{4}\right )}}{2 \, \sqrt {\sqrt {d} h}}\right ) e^{\left (-\frac {3}{4}\right )}}{\sqrt {\sqrt {d} h}}\right )} e}{d} - \frac {8}{\sqrt {h x} d}\right )} e}{5 \, h^{3}} - \frac {2 \, a g^{2} x^{3}}{\left (h x\right )^{\frac {7}{2}}} - \frac {4 \, b f g x^{2} \log \left ({\left (x^{2} e + d\right )}^{p} c\right )}{3 \, \left (h x\right )^{\frac {7}{2}}} + \frac {2 \, {\left (\frac {\sqrt {2} h^{2} e^{\left (-\frac {1}{4}\right )} \log \left (h x e^{\frac {1}{2}} + \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} \sqrt {h x} e^{\frac {1}{4}} + \sqrt {d} h\right )}{\left (d h^{2}\right )^{\frac {3}{4}}} - \frac {\sqrt {2} h^{2} e^{\left (-\frac {1}{4}\right )} \log \left (h x e^{\frac {1}{2}} - \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} \sqrt {h x} e^{\frac {1}{4}} + \sqrt {d} h\right )}{\left (d h^{2}\right )^{\frac {3}{4}}} + \frac {2 \, \sqrt {2} h \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} e^{\frac {1}{4}} + 2 \, \sqrt {h x} e^{\frac {1}{2}}\right )} e^{\left (-\frac {1}{4}\right )}}{2 \, \sqrt {\sqrt {d} h}}\right ) e^{\left (-\frac {1}{4}\right )}}{\sqrt {\sqrt {d} h} \sqrt {d}} + \frac {2 \, \sqrt {2} h \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} e^{\frac {1}{4}} - 2 \, \sqrt {h x} e^{\frac {1}{2}}\right )} e^{\left (-\frac {1}{4}\right )}}{2 \, \sqrt {\sqrt {d} h}}\right ) e^{\left (-\frac {1}{4}\right )}}{\sqrt {\sqrt {d} h} \sqrt {d}}\right )} b f g p e}{3 \, h^{4}} - \frac {4 \, a f g x^{2}}{3 \, \left (h x\right )^{\frac {7}{2}}} - \frac {2 \, b f^{2} \log \left ({\left (x^{2} e + d\right )}^{p} c\right )}{5 \, \left (h x\right )^{\frac {5}{2}} h} - \frac {2 \, a f^{2}}{5 \, \left (h x\right )^{\frac {5}{2}} h} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 2420 vs.
\(2 (627) = 1254\).
time = 6.23, size = 2420, normalized size = 2.59 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.90, size = 660, normalized size = 0.71 \begin {gather*} \frac {\frac {2 \, {\left (10 \, \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} b d f g h p e^{\frac {11}{4}} + 15 \, \sqrt {2} \left (d h^{2}\right )^{\frac {3}{4}} b d g^{2} p e^{\frac {9}{4}} - 3 \, \sqrt {2} \left (d h^{2}\right )^{\frac {3}{4}} b f^{2} p e^{\frac {13}{4}}\right )} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} e^{\left (-\frac {1}{4}\right )} + 2 \, \sqrt {h x}\right )} e^{\frac {1}{4}}}{2 \, \left (d h^{2}\right )^{\frac {1}{4}}}\right ) e^{\left (-2\right )}}{d^{2} h} + \frac {2 \, {\left (10 \, \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} b d f g h p e^{\frac {11}{4}} + 15 \, \sqrt {2} \left (d h^{2}\right )^{\frac {3}{4}} b d g^{2} p e^{\frac {9}{4}} - 3 \, \sqrt {2} \left (d h^{2}\right )^{\frac {3}{4}} b f^{2} p e^{\frac {13}{4}}\right )} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} e^{\left (-\frac {1}{4}\right )} - 2 \, \sqrt {h x}\right )} e^{\frac {1}{4}}}{2 \, \left (d h^{2}\right )^{\frac {1}{4}}}\right ) e^{\left (-2\right )}}{d^{2} h} + \frac {{\left (10 \, \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} b d f g h p e^{\frac {11}{4}} - 15 \, \sqrt {2} \left (d h^{2}\right )^{\frac {3}{4}} b d g^{2} p e^{\frac {9}{4}} + 3 \, \sqrt {2} \left (d h^{2}\right )^{\frac {3}{4}} b f^{2} p e^{\frac {13}{4}}\right )} e^{\left (-2\right )} \log \left (\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} \sqrt {h x} e^{\left (-\frac {1}{4}\right )} + h x + \sqrt {d h^{2}} e^{\left (-\frac {1}{2}\right )}\right )}{d^{2} h} - \frac {{\left (10 \, \sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} b d f g h p e^{\frac {11}{4}} - 15 \, \sqrt {2} \left (d h^{2}\right )^{\frac {3}{4}} b d g^{2} p e^{\frac {9}{4}} + 3 \, \sqrt {2} \left (d h^{2}\right )^{\frac {3}{4}} b f^{2} p e^{\frac {13}{4}}\right )} e^{\left (-2\right )} \log \left (-\sqrt {2} \left (d h^{2}\right )^{\frac {1}{4}} \sqrt {h x} e^{\left (-\frac {1}{4}\right )} + h x + \sqrt {d h^{2}} e^{\left (-\frac {1}{2}\right )}\right )}{d^{2} h} - \frac {2 \, {\left (15 \, b d g^{2} h^{3} p x^{2} \log \left (h^{2} x^{2} e + d h^{2}\right ) - 15 \, b d g^{2} h^{3} p x^{2} \log \left (h^{2}\right ) + 12 \, b f^{2} h^{3} p x^{2} e + 10 \, b d f g h^{3} p x \log \left (h^{2} x^{2} e + d h^{2}\right ) - 10 \, b d f g h^{3} p x \log \left (h^{2}\right ) + 15 \, b d g^{2} h^{3} x^{2} \log \left (c\right ) + 15 \, a d g^{2} h^{3} x^{2} + 3 \, b d f^{2} h^{3} p \log \left (h^{2} x^{2} e + d h^{2}\right ) - 3 \, b d f^{2} h^{3} p \log \left (h^{2}\right ) + 10 \, b d f g h^{3} x \log \left (c\right ) + 10 \, a d f g h^{3} x + 3 \, b d f^{2} h^{3} \log \left (c\right ) + 3 \, a d f^{2} h^{3}\right )}}{\sqrt {h x} d h^{2} x^{2}}}{15 \, h^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (f+g\,x\right )}^2\,\left (a+b\,\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\right )}{{\left (h\,x\right )}^{7/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________